package routers

import (
	"exp/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/login", &controllers.ExpController{}, "post:Login")             //登录验证
	beego.Router("/roleNodeAdd", &controllers.ExpController{}, "post:RoleNodeAdd") //角色-权限 添加
	beego.Router("/userRole", &controllers.ExpController{}, "post:UserRole")       //用户-角色
	beego.Router("/roleNode", &controllers.ExpController{}, "post:RoleNode")       //角色-权限
	beego.Router("/companyAdd", &controllers.ExpController{}, "post:CompanyAdd")   //物流添加
	beego.Router("/orderAdd", &controllers.ExpController{}, "post:OrderAdd")       //订单号添加
	beego.Router("/orderList", &controllers.ExpController{}, "get:OrderList")      //订单号列表
	beego.Router("/orderDetail", &controllers.ExpController{}, "get:OrderDetail")  //快递详情表
}
